package com.as.client;

import com.as.client.charts.BwChart;
import com.as.client.charts.ChartPanel;
import com.as.client.charts.JitterPanel;
import com.as.client.charts.LegendPanel;
import com.as.client.charts.LostChart;
import com.as.client.services.SimpleService;
import com.as.client.services.SimpleServiceAsync;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.RootPanel;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.HorizontalLayout;

/**
 * Main entry point for the example project.
 * @author Ian Bull
 *
 */
public class StartingPoint implements EntryPoint {

	/**
	 * Starting point for the Module
	 */
	public void onModuleLoad() {

		
		 Panel panel = new Panel();  
	        panel.setBorder(true);  
	         panel.setPaddings(10);  
	         
	   
	         panel.setLayout(new HorizontalLayout(15));  
	         
			 Panel panel2 = new Panel();  
		        panel2.setBorder(true);  
		         panel2.setPaddings(10);  
		   
		         panel2.setLayout(new HorizontalLayout(15));  
	   
//	         ChartPanel p = new ChartPanel("title1","tiempo","pdfr","retardo");
		     BwChart p = new BwChart();
//	         ChartPanel p2 = new ChartPanel("title2","tiempo","pdfr","retardo");
		     LostChart p2 = new LostChart();

//	         ChartPanel p3 = new ChartPanel("title3","tiempo","pdfr","retardo");
		     JitterPanel p3 = new JitterPanel();
//	         ChartPanel p4 = new ChartPanel("title4","tiempo","pdfr","retardo");
		     LegendPanel p4 = new LegendPanel(); 
	         p.setAutoHeight(true);
	         p.setAutoWidth(true);
	         

	         panel.add(p);
	         panel.add(p2);
	         panel2.add(p3);
	         panel2.add(p4);
	     //    panel2.add(p4);
	         panel.doLayout();
	         panel2.doLayout();


	  
	         RootPanel.get().add(panel);
	         RootPanel.get().add(panel2);
	         panel.doLayout();

	}

}
